﻿@{
    ViewBag.Title = "Staff";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var Cols = new Jw.Models.sys_roleMenuColumnMapService().GetCurrentUserMenuColumns();
}
@section scripts{
    <script src="~/Areas/Pacm/js/DayReport.js"></script>
    <script type="text/javascript">
        var ReportID = '@ViewBag.ReportID';
        var ReportName = '@ViewBag.ReportName';
        ko.bindingViewModel(new viewModel());
    </script>
}
<div class="z-toolbar">
    <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh"
        title="刷新" data-bind="click:refreshClick">刷新</a> <a id="a_add" href="#" plain="true"
            class="easyui-linkbutton" icon="icon-add" title="新增" data-bind="click:addClick">
            新增</a> <a id="a_edit" href="#" plain="true" class="easyui-linkbutton" icon="icon-edit"
                data-bind="click:editClick" title="编辑">编辑</a> <a id="a_edit" href="#" plain="true"
                    class="easyui-linkbutton" icon="icon-key_stop" data-bind="click:checkClick" title="编辑">
                    审核</a> <a id="a_edit" href="#" plain="true" class="easyui-linkbutton" icon="icon-key_go"
                        data-bind="click:cancelClick" title="编辑">撤销</a> <a id="a_del" href="#" plain="true"
                            class="easyui-linkbutton" icon="icon-cross" title="删除" data-bind="click:deleteClick">
                            删除</a>
</div>
<div id="condition" class="container_12" style="height: 34px; padding-top: 5px;">
    <div class="grid_1 lbl">
        名称：</div>
    <div class="grid_2 val">
        <input id="txtReportName" type="text" data-bind="value:form.Info_Dwmc" class="z-txt" /></div>
    <div class="grid_1 lbl">
        日期：</div>
    <div class="grid_2 val">
        <input id="txtDate" type="text" data-bind="value:form.Cxrq" class="z-txt" /></div>
    <div class="prefix_6">
        <a id="a_search" href="#" class="button button-blue" data-bind="click:searchClick">查询</a>
        <a id="a_reset" href="#" class="button button-blue" data-bind="click:clearClick">清空</a>
    </div>
</div>
<table data-bind="datagrid:grid">
    <thead>
        <tr>
            <th field="Info_Id" sortable="true" hidden="true" align="left" width="80">
                ID
            </th>
            <th field="Report_Name" sortable="true" align="left" width="100">
                报表名称
            </th>
            <th field="Cxrq" sortable="true" align="left" width="90">
                日期
            </th>
            <th field="CreatePerson" sortable="true" align="left" width="100">
                添加人
            </th>
            <th field="CreateDate" formatter="com.formatTime" sortable="true" align="left" width="125">
                添加时间
            </th>
            <th field="UpdatePerson" sortable="true" align="left" width="100">
                最后修改人
            </th>
            <th field="UpdateDate" formatter="com.formatTime" sortable="true" align="left" width="125">
                最后修改时间
            </th>
            <th field="ApproveState" sortable="true" align="left" width="80">
                审核状态
            </th>
            <th field="ApprovePerson" sortable="true" align="left" width="100">
                审核人
            </th>
            <th field="ApproveDate" formatter="com.formatTime" sortable="true" align="left" width="125">
                审核时间
            </th>
            <th field="Info_Remark" sortable="true" align="left" width="240">
                备注
            </th>
        </tr>
    </thead>
</table>
<script type="text/html" id="type-template">
    <div class="container_12" style="width:90%;margin:5%;">
        <div class="grid_4 lbl">报表名称：</div>
        <div class="grid_7 val"><input id = "txtName" disabled="disabled" name = "txtName"   class="z-txt" /></div>
        <div class="grid_1 lbl"></div>
        <div class="clear"></div>
        <div class="grid_4 lbl">报表年份：</div>
        <div class="grid_7 val"><input id = "txtYear" name = "txtYear" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0" maxlength="4" class="z-txt" /></div>
        <div class="grid_1 lbl" style="color:#F00">*</div>
        <div class="clear"></div>
        <div class="grid_4 lbl">报表月份：</div>
        <div class="grid_7 val"><input id = "txtMonth" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0" maxlength="2"  class="z-txt" /></div>
        <div class="grid_1 lbl" style="color:#F00">*</div>
        <div class="clear"></div>
        <div class="grid_4 lbl">报表天次：</div>
        <div class="grid_7 val"><input id = "txtDay" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0" maxlength="2" class="z-txt"  /></div>
        <div class="grid_1 lbl" style="color:#F00">*</div>
        <div class="clear"></div>
    </div>
   <div style="text-align:center;margin:5px;">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" data-bind="click:confirmClick" href="javascript:void(0)"  >确定</a>  
        <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" data-bind="click:cancelClick" href="javascript:void(0)">取消</a> 
    </div>
           
</script>
